﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace añadirContinuacionTarea
{
    class Program
    {
        public static void Main()
        {

            Task<int> t = Task.Run(() =>
            {

                return 42;

            }).ContinueWith((i) =>
            {

                return i.Result * 2;

            });

            Console.WriteLine(t.Result); // Displays 84 
        }
    }
}
